all: testone testsuite

clean:
	rm -f *.o testone testsuite

testone: testone.o DjoltTemplate.o DjoltNode.o DjoltContext.o DjoltFilter.o DjoltToken.o
	gcc -o testone -ObjC \
		-licucore \
		-framework Foundation \
		testone.o DjoltTemplate.o DjoltNode.o DjoltContext.o DjoltFilter.o DjoltToken.o

testsuite: testsuite.o DjoltTemplate.o DjoltNode.o DjoltContext.o DjoltFilter.o DjoltToken.o
	gcc -o testsuite -ObjC \
		-licucore \
		-framework Foundation \
		testsuite.o DjoltTemplate.o DjoltNode.o DjoltContext.o DjoltFilter.o DjoltToken.o

testsuite.o: testsuite.m
	gcc -c -ObjC testsuite.m 

testone.o: testone.m
	gcc -c -ObjC testone.m 

DjoltTemplate.o: DjoltTemplate.m DjoltTemplate.h
	gcc -c -ObjC DjoltTemplate.m 

DjoltNode.o: DjoltNode.m DjoltNode.h
	gcc -c -ObjC DjoltNode.m 

DjoltContext.o: DjoltContext.m DjoltContext.h
	gcc -c -ObjC DjoltContext.m 

DjoltFilter.o: DjoltFilter.m DjoltFilter.h
	gcc -c -ObjC DjoltFilter.m 

DjoltToken.o: DjoltToken.m DjoltToken.h
	gcc -c -ObjC DjoltToken.m 
